package cc.catface.mess;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@SpringBootApplication//(exclude = {DataSourceAutoConfiguration.class, HibernateJpaAutoConfiguration.class})
@RestController
@MapperScan("cc.catface.mess")
public class MessApplication {

    public static void main(String[] args) {
        SpringApplication.run(MessApplication.class, args);
    }

    @RequestMapping("time")
    public String time() {
        return new Date().toLocaleString() + " from springboot-mess[9002]";
    }
}
